<div class="row searchLineWrap">
	<form class="form-horizontal" method="post" action="${cxt!}/admin/commissionrule" id="searchForm">
	  <div class="col-md-12">
		  <div class="row">
		    <div class="col-md-4">
		      <div class="form-group">
		         <label  class="col-md-3 control-label">${_res["commission.rule.name"]}</label>
		         <div class="col-md-9">
		            <input type="text" class="form-control" name="commissionRule.l_name" placeholder="${_res['commission.rule.name']}" value="${paramMap['commissionRule.l_name']}"/>
		         </div>
		       </div>
		    </div>
		    
		    <div class="col-md-4">
		      <div class="form-group">
		         <label  class="col-md-3 control-label">${_res["system.startdate"]}</label>
		         <div class="col-md-9">
		            <input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="commissionRule.gt_startdate"  placeholder="${_res['system.startdate']}" value="${paramMap['commissionRule.gt_startdate']}"/>
		         </div>
		       </div>
		    </div>
		    <div class="col-md-4">
		      <div class="form-group">
		         <label class="col-md-3 control-label">${_res["system.enddate"]}</label>
		         <div class="col-md-9">
		             <input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="commissionRule.le_startdate"  placeholder="${_res['system.enddate']}" value="${paramMap['commissionRule.le_startdate']}"/>
		         </div>
		       </div>
		     </div>
		   
		  </div>
		  <div class="row">
		   <div class="col-md-4">
		         <div class="form-group">
		           <label class="col-md-3 control-label">${_res["commission.rule.type"]}</label>
		           <div class="col-md-9">
		               <#dict type="select" class="form-control" name="commissionRule.f_commissiontype"  dictCode="COMMISSION_TYPE" defaultValue="${paramMap['commissionRule.f_commissiontype']}"/>
		           </div>
		       </div>
		     </div>
		     
		   <div class="col-md-4">
		         <div class="form-group">
		           <label class="col-md-3 control-label">${_res["commission.rule.status"]}</label>
		           <div class="col-md-9">
		               <#dict type="select" class="form-control" name="commissionRule.f_status"  dictCode="COMMON_STATUS" defaultValue="${paramMap['commissionRule.f_status']}"/>
		           </div>
		       </div>
		     </div>
		    
		    <div class="col-md-4">
		        <div class="form-group">
		        	<div class="col-md-7">
		        	   <% if(hasPrivilegeUrl("commission_rule")){ %>
			        		<button type="button" class="btn btn-primary pull-right" onclick="ajaxForm('content','searchForm')">
			          			<i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}
			          		</button>
		          		<%}%>
		        	</div>
		          
		        </div>
		    </div>
		  </div>
	  </div>
	</form>
</div>
	
<div class="row searchLineWrap">
   <% if(hasPrivilegeUrl("commissionrule_add")){ %>
	<p><a href="javascript:void(0);" onClick="ajaxContent('/admin/toUrl?toUrl=/realty/commissionrule/add.html');" class="btn btn-primary pull-left">${_res["commission.rule.add"]}</a><div class="clearfix"></div></p>
   <%}%>
   <table class="table table-bordered table-hover">
		<thead>
			<tr>
				<th class="text-center">${_res["commission.rule.name"]}</th>
				<th class="text-center">${_res["commission.rule.type"]}</th>
				<th class="text-center">${_res["commission.rule.feetype"]}</th>
				<th class="text-center">${_res["commission.rule.status"]}</th>
				<th class="text-center">${_res["commission.rule.rebate"]}</th>
				<th class="text-center">${_res["commission.rule.startvalue"]}/${_res["commission.rule.endvalue"]}</th>
				<th class="text-center">${_res["commission.rule.expirydate"]}</th>
				<th class="text-center">${_res["system.modifyby"]}</th>
				<th class="text-center">${_res["system.modifytime"]}</th>
				<th class="text-center">${_res["system.operator"]}</th>
			</tr>
		</thead>
		<tbody>
			<%for (settlementRule in settlementRuleList!){%>
			    <tr class="gradeC">
				<td>${settlementRule.name!}</td>
				<td><#dict type="lable"  value="${settlementRule.commissiontype!}"  dictCode="COMMISSION_TYPE" /></td>
				<td><#dict type="lable"  value="${settlementRule.feetype!}"  dictCode="COMMISSION_FEE_TYPE" /></td>
				<td><#dict type="lable"  value="${settlementRule.status!}"  dictCode="COMMON_STATUS" /></td>
				<td>${settlementRule.rebate!}</td>
				<td>${settlementRule.startvalue!}/${settlementRule.endvalue!}</td>
				<td>${settlementRule.startdate!}/${settlementRule.endate!}</td>
				<td><#cust customerId="${settlementRule.modifyby!}"/></td>
				<td>${settlementRule.updatetime!}</td>
				<td>
				<% if(hasPrivilegeUrl("commissionrule_edit")){ %>
					<button type="button" class="btn btn-sm btn-link"
					onClick="ajaxContent('/admin/commissionrule/edit/${settlementRule.id!}');">${_res["system.edit"]}</button>
				<%}%>
				<% if(hasPrivilegeUrl("relatedRoleTree")){ %>
					<button type="button" class="btn btn-sm btn-link"
						data-toggle="modal" data-target="#myModal" data-whatever="${settlementRule.id!},/admin/commissionrule/relatedroletree,/admin/commissionrule/relatedrolesetting">${_res["commission.rule.associatedObject"]}</button>
				<%}%>
				
				<% if(settlementRule.commissiontype! =='P' && hasPrivilegeUrl("relatedProjectTree")){ %>
				<button type="button" class="btn btn-sm btn-link"
						data-toggle="modal" data-target="#myModal" data-whatever="${settlementRule.id!},/admin/commissionrule/relatedprojecttree,/admin/commissionrule/relatedprojectsetting">${_res["commission.rule.associatedProject"]}</button>
				<%}%>
				</td>
			</tr>
		    <%}%>
		</tbody>
	</table>
	<div id="splitPageDiv">
	  <#page formId="searchForm"  />
	</div>
	<#nav />
</div>

<%include("/realty/commissionrule/relatedObject.html"){}%>

